package com.design.genernal;

/**
 * 非终结符表达式
 * @author:         cong zhi
 * @createDate:     2023/7/18 11:58
 * @updateUser:     cong zhi
 * @updateDate:     2023/7/18 11:58
 * @updateRemark:   修改内容
 * @version:        v1.0
 */
public class NonterminalExpression implements Expression {


    private Expression[] expressions;

    public NonterminalExpression(Expression[] expressions) {
        // 每个非终结符表达式都会对其他表达式产生依赖
        this.expressions = expressions;
    }


    @Override
    public Object interpret(Context context) {
        // 进行文法处理
        context.put("", "");
        return null;
    }
}
